<template>
	<view class="page flex-col">
		<view class="group_1 flex-col">
			<view class="block_1 flex-col">
				<text class="text_1">MBTI</text>
				<view class="text-group-1">
					<text class="text_2">16型人格测试</text>
					<!-- 装饰星星 -->
					<text class="star-icon">✨</text>
				</view>
				
				<!-- 3D几何图形区域 -->
				<view class="image-wrapper flex-col">
					<!-- 这里的图片需要替换为实际的3D图形资源 -->
					<view class="cube-placeholder">
						<view class="cube-inner">
							<text class="cube-text">试?</text>
						</view>
					</view>
				</view>
				
				<!-- 白色卡片区域 -->
				<view class="group_2 flex-col">
					<view class="text-wrapper_1 flex-row">
						<text class="text_3">MBTI-16型人格测试</text>
						<text class="icon-quote">∥</text>
					</view>
					
					<text class="paragraph_1">
						你是善于思考的INTP，是充满冒险精神的ESTP，还是善于照顾他人感受的ISFJ?
						<br />
						您是16种人格中的哪一种?
					</text>
					
					<view class="list_1 flex-col">
						<view class="list-item flex-row">
							<view class="diamond-point"></view>
							<text class="list-text">NT理性者</text>
						</view>
						<view class="list-item flex-row">
							<view class="diamond-point"></view>
							<text class="list-text">NF理想主义者</text>
						</view>
						<view class="list-item flex-row">
							<view class="diamond-point"></view>
							<text class="list-text">SJ传统主义者</text>
						</view>
						<text class="ellipsis">......</text>
					</view>
					
					<text class="text_4">开始您的MBTI类型结果验证,用科学的方法指导工作、生活和情感。</text>
				</view>
				
				<!-- 底部按钮 -->
				<button class="button_1 flex-col" @click="startTest">
					<text class="text_5">开始测试</text>
				</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				constants: {}
			};
		},
		methods: {
			goBack() {
				uni.navigateBack();
			},
			startTest() {
				uni.navigateTo({
					url: '/pages/emotion-test/test-questions'
				});
			}
		}
	};
</script>

<style scoped>
	/* 基础布局类 */
	.flex-col {
		display: flex;
		flex-direction: column;
	}

	.flex-row {
		display: flex;
		flex-direction: row;
	}

	.page {
		position: relative;
		width: 750rpx;
		min-height: 100vh;
		background: linear-gradient(180deg, #FFFFFF 0%, #E0F7FA 100%);
		overflow: hidden;
	}

	.group_1 {
		position: relative;
		width: 750rpx;
		min-height: 100vh;
		padding-bottom: 60rpx;
	}

	/* 导航栏模拟 */
	.nav-bar {
		width: 100%;
		height: 88rpx;
		align-items: center;
		justify-content: space-between;
		padding: 0 30rpx;
		margin-top: var(--status-bar-height);
		box-sizing: border-box;
	}
	
	.icon-back {
		font-size: 40rpx;
		color: #333;
	}
	
	.icon-more {
		display: flex;
		gap: 6rpx;
		border: 1px solid #ccc;
		border-radius: 30rpx;
		padding: 10rpx 20rpx;
		align-items: center;
	}
	
	.dot {
		width: 8rpx;
		height: 8rpx;
		background-color: #333;
		border-radius: 50%;
	}

	/* 主内容区 */
	.block_1 {
		width: 100%;
		align-items: center;
		padding-top: 40rpx;
	}

	.text_1 {
		font-size: 80rpx;
		color: #333;
		font-family: PingFangSC-Semibold;
		line-height: 80rpx;
		letter-spacing: 4rpx;
		text-shadow: 0 4rpx 10rpx rgba(0,0,0,0.1);
	}
	
	.text-group-1 {
		position: relative;
		margin-top: 20rpx;
	}

	.text_2 {
		font-size: 64rpx;
		color: #333;
		font-family: PingFangSC-Regular;
		line-height: 64rpx;
	}
	
	.star-icon {
		position: absolute;
		right: -40rpx;
		top: -20rpx;
		font-size: 40rpx;
		color: #FFD700;
	}

	/* 3D图形占位 */
	.image-wrapper {
		width: 400rpx;
		height: 400rpx;
		margin: 40rpx 0;
		align-items: center;
		justify-content: center;
		position: relative;
	}
	
	.cube-placeholder {
		width: 300rpx;
		height: 300rpx;
		background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
		transform: rotate(45deg);
		box-shadow: 0 20rpx 50rpx rgba(161, 140, 209, 0.5);
		border-radius: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.cube-inner {
		transform: rotate(-45deg);
	}
	
	.cube-text {
		font-size: 80rpx;
		color: #fff;
		font-weight: bold;
	}

	/* 白色信息卡片 */
	.group_2 {
		background-color: rgba(255, 255, 255, 0.9);
		border-radius: 40rpx;
		width: 650rpx;
		padding: 50rpx 40rpx;
		margin-top: 20rpx;
		box-shadow: 0 10rpx 40rpx rgba(0,0,0,0.05);
		box-sizing: border-box;
	}

	.text-wrapper_1 {
		align-items: center;
		margin-bottom: 30rpx;
	}

	.text_3 {
		color: #333;
		font-size: 36rpx;
		font-family: PingFangSC-Medium;
		font-weight: bold;
	}
	
	.icon-quote {
		color: #B0BEC5;
		font-size: 36rpx;
		margin-left: 20rpx;
		font-style: italic;
		font-weight: bold;
	}

	.paragraph_1 {
		color: #666;
		font-size: 28rpx;
		line-height: 48rpx;
		text-align: left;
		margin-bottom: 30rpx;
	}

	.list_1 {
		width: 100%;
		margin-bottom: 30rpx;
	}
	
	.list-item {
		align-items: center;
		margin-bottom: 16rpx;
	}
	
	.diamond-point {
		width: 12rpx;
		height: 12rpx;
		background-color: #4DD0E1;
		transform: rotate(45deg);
		margin-right: 16rpx;
	}
	
	.list-text {
		color: #333;
		font-size: 28rpx;
	}
	
	.ellipsis {
		color: #ccc;
		font-size: 24rpx;
		margin-left: 30rpx;
		letter-spacing: 4rpx;
	}

	.text_4 {
		color: #999;
		font-size: 24rpx;
		line-height: 36rpx;
		text-align: justify;
	}

	/* 底部按钮 */
	.button_1 {
		background: linear-gradient(90deg, #26C6DA 0%, #00BCD4 100%);
		border-radius: 50rpx;
		width: 600rpx;
		height: 100rpx;
		align-items: center;
		justify-content: center;
		margin-top: 60rpx;
		box-shadow: 0 10rpx 20rpx rgba(0, 188, 212, 0.3);
		border: none;
	}
	
	.button_1::after {
		border: none;
	}

	.text_5 {
		color: #FFFFFF;
		font-size: 36rpx;
		font-family: PingFangSC-Medium;
		font-weight: bold;
	}
</style>
